import request from '../request.js'

export const exportExcelApi = () => {
  return request.request({
    url: 'recruit/resume/export/list',
    method: 'post',
    responseType: 'blob'
  })
}

export const postChangeResumeStatusByResumeIdApi = (id, status) => {
  return request.post(`recruit/resume/status/change?id=${ id }&status=${ status }`)
}

export const exportResumeAttachedByAttachedIdApi = attachedId => {
  return request.request({
    url: `recruit/resume/export?fileId=${ attachedId }`,
    method: 'post',
    responseType: 'blob'
  })
}

export const getResumesLimitApi = (name, stationId, status, pageNum, pageSize) => {
  return request.get(`recruit/resume/page/list?stationId=${ stationId }&status=${ status }&name=${ name }&pageNum=${ pageNum }&pageSize=${ pageSize }`)
}
